<!DOCTYPE html>
<html>
<head>
    <title>开奖记录表</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="期号"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("lotterywinning:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("lotterywinning:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("lotterywinning:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("lotterywinning:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="lotteryWinning" :rules="ruleValidate" :label-width="80">
            <Form-item label="黑桃牌面" prop="htb">
                <i-input v-model="lotteryWinning.htb" placeholder="牌面格式：1到13"/>
            </Form-item>
            <Form-item label="红桃牌面" prop="hongtb">
                <i-input v-model="lotteryWinning.hongtb" placeholder="牌面格式：1到13"/>
            </Form-item>
            <Form-item label="梅花牌面" prop="mhb">
                <i-input v-model="lotteryWinning.mhb" placeholder="牌面格式：1到13"/>
            </Form-item>
            <Form-item label="方块牌面" prop="fkb">
                <i-input v-model="lotteryWinning.fkb" placeholder="牌面格式：1到13"/>
            </Form-item>
            <Form-item label="期号" prop="stages">
                <i-input v-model="lotteryWinning.stages" placeholder="牌面格式：2019001"/>
            </Form-item>
            <Form-item label="开奖时间" prop="openDate">
                <i-input v-model="lotteryWinning.openDate" placeholder="格式: 2019-01-01 18:00:00"/>
                <!--<Date-picker type="datetime" placement="bottom-end"   v-model="lotteryWinning.openDate"  placeholder="开始时间"-->
                             <!--format="yyyy-MM-dd HH:mm:ss"></Date-picker>-->
            </Form-item>
            <Form-item label="开奖文案" prop="text">
                <i-input v-model="lotteryWinning.text" placeholder="开奖文案"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">保存修改</i-button>
                &nbsp;
                <i-button type="primary" @click="openlotter()">确认开奖</i-button>
                &nbsp;
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/active/lotterywinning.js?_${date.systemTime}"></script>
</body>
</html>